<?php
$default_fetch_mode = PDO::FETCH_ASSOC;

// read/write master数据库设置
$config['solr_report_master'] = array(
    'dsn'=>'mysql:host=192.168.1.96;dbname=solrstatus_db',
    'username' => 'solrstatus',
    'password' => 'solrstatus',

    'init_attributes' => array(),
    'init_statements' => array('SET CHARACTER SET utf8','SET NAMES utf8'),

    'default_fetch_mode' => $default_fetch_mode
);

// read slave数据库设置
$config['solr_report_slave'] = array(
    'dsn'=>'mysql:host=192.168.1.96;dbname=solrstatus_db',
    'username' => 'solrstatus',
    'password' => 'solrstatus',

    'init_attributes' => array(),
    'init_statements' => array('SET CHARACTER SET utf8','SET NAMES utf8'),

    'default_fetch_mode' => $default_fetch_mode
);

// read/write master数据库设置
$config['idx_master'] = array(
    'dsn'=>'mysql:host=10.0.0.162;dbname=idx_db',
    'username' => 'readonly',
    'password' => 'aN2jU3ke',

    'init_attributes' => array(),
    'init_statements' => array('SET CHARACTER SET utf8','SET NAMES utf8'),

    'default_fetch_mode' => $default_fetch_mode
);

// read slave数据库设置
$config['idx_slave'] = array(
    'dsn'=>'mysql:host=10.0.0.162;dbname=idx_db',
    'username' => 'readonly',
    'password' => 'aN2jU3ke',

    'init_attributes' => array(),
    'init_statements' => array('SET CHARACTER SET utf8','SET NAMES utf8'),

    'default_fetch_mode' => $default_fetch_mode
);